<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>Regiones con JSTL</title>

<style type="text/css" >
	@import url("css/displaytag.css");
	@import url("css/maven-theme.css");
	@import url("css/site.css");
	@import url("css/screen.css");
</style>

</head>

<body class="composite">
	<h2>Listado de Regiones Filtradas</h2>
	<c:if test="${param.patron != null}">
		<h2>Que contienen "${param.patron}"</h2>
	</c:if>

	<display:table list="${regiones}" class="mars" pagesize="5" requestURI="regiones">
		<display:column property="numeral" sortable="true" title="#" group="1"/>
		<display:column property="nombre" sortable="true" />
		<display:column property="capital" sortable="true" />
	</display:table>

	<!-- Sin taglib
	<table bordercolor="#000000" border="1">
		<tr>
			<th>Nombre</th>
			<th>Capital</th>
			<th>Numeral</th>
		</tr>
		<c:forEach items="${requestScope.regiones}" var="region">
			<tr>
				<td>${region.nombre}</td>
				<td>${region.capital}</td>
				<td>${region.numeral}</td>
			</tr>
		</c:forEach>
	</table>
	 -->
</body>

</html>